/* 页面容器 */
.sql-web2-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #111827, #1f2937);
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.sql-web2-header {
  background: linear-gradient(to right, rgba(30, 58, 138, 0.9), rgba(21, 94, 117, 0.9));
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.5);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-container {
  background-color: #3b82f6;
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #bfdbfe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-badge-container {
  display: none;
}

@media (min-width: 768px) {
  .header-badge-container {
    display: block;
  }
}

.header-badge {
  padding: 0.25rem 0.75rem;
  background-color: rgba(30, 58, 138, 0.5);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* 主内容区 */
.main-content {
  flex-grow: 1;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.content-wrapper {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #60a5fa, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-description {
  color: #9ca3af;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* 登录表单区域 */
.login-form-container {
  background-color: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transform: translate(0, 0);
  transition: all 0.3s ease;
}

.login-form-container:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px -5px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-0.125rem);
}

.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 表单元素 */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background-color: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  outline: none;
  transition: all 0.15s ease;
  color: white;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* 提交按钮 */
.submit-button {
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.submit-button:hover {
  background: linear-gradient(to right, #2563eb, #0891b2);
  transform: translateY(-0.125rem);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* 过滤日志 */
.filter-log-container {
  margin-top: 1.25rem;
  background-color: rgba(17, 24, 39, 0.5);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
}

.filter-log-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.filter-log-list {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.filter-log-item {
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

/* SQL语句显示 */
.sql-display-container {
  margin-top: 1.5rem;
  background-color: rgba(17, 24, 39, 0.7);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  overflow-x: auto;
}

.sql-display-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.sql-code {
  background-color: rgba(31, 41, 55, 0.5);
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #93c5fd;
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-x: auto;
}

/* 结果显示区域 */
.result-container {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid;
}

/* 登录成功 - 获取FLAG */
.success-result {
  background: linear-gradient(to right, rgba(30, 58, 138, 0.4), rgba(21, 94, 117, 0.4));
  border-color: rgba(59, 130, 246, 0.5);
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.success-content {
  text-align: center;
}

.success-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 1rem;
}

.success-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 0.75rem;
}

.flag-display {
  background: linear-gradient(to right, rgba(17, 24, 39, 0.7), rgba(30, 58, 138, 0.7));
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #e0f2fe;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.success-message {
  color: #9ca3af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* 登录失败 */
.error-result {
  background: linear-gradient(to right, rgba(185, 28, 28, 0.3), rgba(190, 18, 60, 0.3));
  border-color: rgba(220, 38, 38, 0.5);
}

.error-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.error-icon-container {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgba(220, 38, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-title {
  font-weight: 500;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.error-message {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* 提示区域 */
.hints-container {
  background: linear-gradient(to right, rgba(31, 41, 55, 0.8), rgba(30, 58, 138, 0.2));
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hints-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.hints-icon-container {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: rgba(202, 138, 4, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hints-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fde047;
}

.hints-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hints-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hints-section-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #93c5fd;
}

.hints-list {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.hint-item {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.hint-text {
  color: #d1d5db;
}

/* 页脚 */
.sql-web2-footer {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
  border-top: 1px solid #374151;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.footer-content {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

.footer-title {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-description {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.25rem;
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
  }
}

/* 滚动条美化 */
.sql-code::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.sql-code::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 3px;
}

.sql-code::-webkit-scrollbar-thumb {
  background-color: rgba(59, 130, 246, 0.4);
  border-radius: 3px;
  transition: background-color 0.2s;
}

.sql-code::-webkit-scrollbar-thumb:hover {
  background-color: rgba(59, 130, 246, 0.6);
}

/* 交互效果 */
.form-input:focus {
  transition: all 0.2s ease;
}

.submit-button:hover {
  transition: all 0.2s ease;
}

.submit-button:active {
  transform: translateY(0);
}

.site-subtitle {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}